﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Com.JunCaiSoft.Permission.Entity
{
    /// <summary>
    /// 岗位（用来描述用户与角色之间多对多关系）
    /// </summary>
    public class Position
    {
        /// <summary>
        /// 对应标识
        /// </summary>
        public virtual Guid Id { get; set; }
        /// <summary>
        /// 岗位名称
        /// </summary>
        public virtual String Name { get; set; }
        /// <summary>
        /// 用户标识
        /// </summary>
        public virtual Guid UserId { get; set; }
        /// <summary>
        /// 用户
        /// </summary>
        public virtual User User { get; set; }
        /// <summary>
        /// 角色标识
        /// </summary>
        public virtual Guid RoleId { get; set; }
        /// <summary>
        /// 角色
        /// </summary>
        public virtual Role Role { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public virtual DateTime CreateTime { get; set; }
    }
}
